package com.boby.homecamera.data

import android.media.MediaCodec
import java.nio.ByteBuffer

data class RecordMediaFrame(
    val data: ByteBuffer,
    val info: MediaCodec.BufferInfo,
    val type: Type,
    var time:Long? = null
) {
    enum class Type {
        VIDEO, AUDIO
    }
}

data class WebSocketData(val code:Int,val data:Any?){
    override fun toString(): String {
        if(data == null){
            return "{code:$code}"
        }
        return "{code:$code,data:$data}"
    }
}
